<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
    
<sec:authorize access="hasRole('admin')">
    <%response.sendRedirect("./admin/adminIncidentView.xhtml");%>
</sec:authorize>
<sec:authorize access="hasRole('operator')">
    <%response.sendRedirect("./operator/operatorDashboard.xhtml");%>
</sec:authorize>
<sec:authorize access="hasRole('serviceProvider')">
    <%response.sendRedirect("./serviceProvider/spTicketsView.xhtml");%>
</sec:authorize>    
<sec:authorize access="hasRole('supervisor')">
    <%response.sendRedirect("./supervisor/supervisor.xhtml");%>
</sec:authorize>        
    
<table width="90%" height="100%" border="1" align="center">
		<tr>
			<td bgcolor="gray" colspan="3" align="center">
				<%@ include file="/secured/panels/headerPanel.jsp" %>
			</td>
		</tr>
		<tr>
			<td bgcolor="skyblue" align=left valign="top" width="20%">
				<%@ include file="/secured/panels/leftPanel.jsp" %>
			</td>
			<td align="center" width="60%">
				<p>This is the place of the main panel</p>
				<p>Hi Authorized User</p>
			</td>
			<td bgcolor="skyblue" align="center" valign="top" width="20%">
				<%@ include file="/secured/panels/rightPanel.jsp"%>
			</td>
		</tr>
		<tr>
			<td bgcolor="gray" colspan="3" align="center">
				<%@ include file="/secured/panels/footerPanel.jsp"%>
			</td>
		</tr>
	</table>
</body>
</html>